import React, { useState } from "react";

export default function App() {
  const [state, setState] = useState("lzq", 100);
  const [age, upAge] = useState("18");
  console.log(state);
  return (
    <div>
      app2312-{state}
      <span>年龄-{age}</span>
      <button onClick={() => setState("廖子乔点击更新")}>点击更新</button>
      <button onClick={() => upAge("25廖子乔点击更新")}>更新年龄</button>
      <HashRouter>
        {" "}
        <Switch>
          {" "}
          <Route component={Login} exact path="/login" />{" "}
          <Route component={Info} path="/info" />{" "}
        </Switch>{" "}
      </HashRouter>
    </div>
  );
}
